#include <stdio.h>
#include <stdlib.h>
typedef struct Node{
    int data;
    char name;
    struct Node *next;
} Node;

int main(){

    Node a;

    a.data=3;
    a.name='a';

    // printf("%d",a.data);

    Node *b;

    b = (Node *)malloc(sizeof(Node));
    b->data=2;
    b->next=NULL;
    b->name='b';
    a.next=b;



    Node *c;

    c = (Node *)malloc(sizeof(Node));
    c->data=21;
    c->next=NULL;
    c->name='c';
    b->next=c;

    Node *p;
    p=&a;
    int i=0;
    // while(p->next!=NULL){
    while(p!=NULL){
        printf("%d\t",i++);
        printf("%d\t",p->data);
        printf("%c\n",p->name);
        p=p->next;
        // p->next=p;
    }

    return 0;
}